package com.hourse.platform.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * @ClassName UpdatePwdReqVo
 * @Author limengqi
 * @Date 2020/12/12 16:16
 * @Description
 * @Version 1.0
 **/
@Data
@ApiModel(value = "修改密码请求VO")
public class UpdatePwdReqVo extends BaseVo {


    private String id;

    @ApiModelProperty(value = "账户",example = "18735432312",allowableValues = "18735432312")
    @Pattern(regexp = "^((13[0-9])|(14[5|7|9])|(15([0-3]|[5-9]))|(17([0-3][5-8]))|(18[0-9])|166|19(8|9))\\d{8}$",message = "账户格式有误")
    @NotBlank(message = "账户不能为空")
    private String account;

    @ApiModelProperty(value = "旧密码",example = "123456",allowableValues = "123456")
    @NotBlank(message = "旧密码不能为空")
    private String Oldpassword;

    @ApiModelProperty(value = "新密码1",example = "123456",allowableValues = "123456")
    @NotBlank(message = "新密码不能为空")
    private String newpassword1;


    @ApiModelProperty(value = "新密码2",example = "123456",allowableValues = "123456")
    @NotBlank(message = "新密码不能为空")
    private String newpassword2;


    @ApiModelProperty(value = "验证码",example = "123456",allowableValues = "123456")
    @NotBlank(message = "验证码不能为空")
    private String verifyCode;

    @ApiModelProperty(value = "随机图片结果",example = "12",allowableValues = "12")
    @NotBlank(message = "随机图片结果")
    private String imgNum;


}
